import request from '@/config/axios'


export const getDormFloorPage = (params: any) => {
  return request.get({ url: '/system/dorm-floor/page', params })
}

export const getDormbuildPage = (params: any) => {
  return request.get({ url: '/system/dorm-build/page', params })
}

export const getDormroomPage = (params: any) => {
  return request.get({ url: '/system/dorm-room/page', params })
}

export const postDormFloorPage = (data: any) => {
  return request.post({ url: '/system/dorm-floor/create', data })
}

export const postDormbuildPage = (data: any) => {
  return request.post({ url: '/system/dorm-build/create', data })
}

export const postDormroomPage = (data: any) => {
  return request.post({ url: '/system/dorm-room/create', data })
}

export const updateDormFloorPage = (data: any) => {
  return request.put({ url: '/system/dorm-floor/update', data })
}

export const updateDormbuildPage = (data: any) => {
  return request.put({ url: '/system/dorm-build/update', data })
}

export const updateDormroomPage = (data: any) => {
  return request.put({ url: '/system/dorm-room/update', data })
}
export const delDormFloorPage = (id: any) => {
  return request.delete({ url: `/system/dorm-floor/delete?id=${id}` })
}

export const delDormbuildPage = (id: any) => {
  return request.delete({ url: `/system/dorm-build/delete?id=${id}` })
}

export const delDormroomPage = (id: any) => {
  return request.delete({ url: `/system/dorm-room/delete?id=${id}` })
}